package com.sentiment.nlpalgo.bean;

import org.bson.Document;

/*
 * @author liaozhenlin
 * @email 939899727@qq.com
 * 
 */
/*
 * 这个类是一个JavaBean
 * JavaBean由两个Double类型的数据组成.
 * {用于情感分析的负面和非负面概率，data1：非负面概率  data2：负面概率}
 * 
 */
@SuppressWarnings("serial")
public class Double2 extends Document{
 
	public double getData1() {
		return getDouble("data1");
	}
	public void setData1(double data1) {
		append("data1", data1);
	}
	public double getData2() {
		return getDouble("data2");
	}
	public void setData2(double data2) {
		append("data2", data2);
	}
	public Double2(double data1, double data2) {
		append("data1", data1);
		append("data2", data2);
	}
	public Double2() {
	}
}
